﻿/* 
 * author: www.cnblogs.com/luminji
 * date  : 2011/12/28
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Luminji.Infrastructure.DomainBase;
using Luminji.Core.Enterprise.RBAC;

namespace Luminji.Exam.Model.Users
{
    public class ExamUser : EntityBase, IUser
    {
        public string UserCode { get; set; }
        public string UserKey { get; set; }
        public string Email { get; set; }
        public bool IsInvalidUserKey { get; set; }

        public string CurrentUserName { get; set; }

        public List<Role> CurrentUserRoles { get; set; }

        public bool IsGuest()
        {
            return CurrentUserName == "Guest" ? true : false;
        }
    }
}
